class Cache{
    getCache(key) {
        if (!localStorage.getItem(key)) {
            return false
        }
        return JSON.parse(localStorage.getItem(key))
    }
    setCache(key, value) {
        localStorage.setItem(key,JSON.stringify(value))
    }
    clearCache() {
        localStorage.clear()
    }
}
export default new Cache()